//
//  ImageEditView.h
//  Picture
//
//  Created by 孙玉琢 on 16/11/29.
//  Copyright © 2016年 孙玉琢. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "SwipeView.h"
#import "UIColor+Hex.h"

@protocol ImageEditViewDelegate <NSObject>

- (void)changeCenter:(NSInteger)tag stickerViewID:(NSInteger)stickerViewID;
- (void)changeSliderValue:(float)value stickerViewID:(NSInteger)stickerViewID;
- (void)changeSelfHeight:(NSInteger)tag stickerViewID:(NSInteger)stickerViewID imageEditType:(int)imageEditType;

- (void)changeAngle:(NSInteger)tag stickerViewID:(NSInteger)stickerViewID;
- (void)changeAlpha:(float)value stickerViewID:(NSInteger)stickerViewID;

- (void)delStickerView:(NSInteger)stickerViewID;

- (void)changeColor:(NSString *)colorString stickerViewID:(NSInteger)stickerViewID;


@end

@interface ImageEditView : UIView<SwipeViewDelegate, SwipeViewDataSource>

@property (nonatomic)int type;//图片1   形状2

@property (nonatomic)NSInteger stickerViewID;


@property (nonatomic,weak) id <ImageEditViewDelegate> delegate ;
@property (weak, nonatomic) IBOutlet UISlider *slider;

@property (weak, nonatomic) IBOutlet UIView *firstView;
@property (weak, nonatomic) IBOutlet UIView *secView;
@property (weak, nonatomic) IBOutlet UIView *thirdView;
@property (weak, nonatomic) IBOutlet UIView *angleView;
@property (weak, nonatomic) IBOutlet UILabel *angleValue;

@property (weak, nonatomic) IBOutlet UIView *alphaView;
@property (weak, nonatomic) IBOutlet UISlider *alphaValue;
@property (weak, nonatomic) IBOutlet SwipeView *scrollView;
@property (nonatomic, strong) NSArray *colors;
@property (strong, nonatomic) NSString *colorString;


@property (weak, nonatomic) IBOutlet UIButton *firBtn;
@property (weak, nonatomic) IBOutlet UIButton *secBtn;
@property (weak, nonatomic) IBOutlet UIButton *thiBtn;
@property (weak, nonatomic) IBOutlet UIButton *forthBtn;
@property (weak, nonatomic) IBOutlet UIButton *delBtn;

@end
